package com.shop.goods.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shop.common.annotation.Excel;
import com.shop.common.core.domain.BaseEntity;

/**
 * 商品信息对象 shop_goods
 *
 * @author ruoyi
 * @date 2022-04-04
 */
public class ShopGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsInfo;

    /** 分类id */
    @Excel(name = "分类id")
    private String sortId;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** vip商品价格 */
    @Excel(name = "vip商品价格")
    private BigDecimal vipPrice;

    /** 市场价 */
    @Excel(name = "市场价")
    private BigDecimal otPrice;

    /** 邮费 */
    @Excel(name = "邮费")
    private Long postage;

    /** 销量 */
    @Excel(name = "销量")
    private Long sales;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 上架状态（0：上架，1：下架） */
    @Excel(name = "上架状态", readConverterExp = "0=：上架，1：下架")
    private Integer isShow;

    /** 是否热销（0：热销，1：不热销） */
    @Excel(name = "是否热销", readConverterExp = "0=：热销，1：不热销")
    private Integer isHot;

    /** 是否优惠（0：优惠，1：不优惠） */
    @Excel(name = "是否优惠", readConverterExp = "0=：优惠，1：不优惠")
    private Integer isBenefit;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 是否包邮（0：包邮，1：不包邮） */
    @Excel(name = "是否包邮", readConverterExp = "0=：包邮，1：不包邮")
    private Long isPostage;

    /** 获得积分 */
    @Excel(name = "获得积分")
    private Long giveIntegral;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private String browse;

    /** 商品类型（0：普通商品，1：积分商品） */
    @Excel(name = "商品类型", readConverterExp = "0=：普通商品，1：积分商品")
    private Integer goodsType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setGoodsName(String goodsName)
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName()
    {
        return goodsName;
    }
    public void setGoodsInfo(String goodsInfo)
    {
        this.goodsInfo = goodsInfo;
    }

    public String getGoodsInfo()
    {
        return goodsInfo;
    }
    public void setSortId(String sortId)
    {
        this.sortId = sortId;
    }

    public String getSortId()
    {
        return sortId;
    }
    public void setGoodsPrice(BigDecimal goodsPrice)
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice()
    {
        return goodsPrice;
    }
    public void setVipPrice(BigDecimal vipPrice)
    {
        this.vipPrice = vipPrice;
    }

    public BigDecimal getVipPrice()
    {
        return vipPrice;
    }
    public void setOtPrice(BigDecimal otPrice)
    {
        this.otPrice = otPrice;
    }

    public BigDecimal getOtPrice()
    {
        return otPrice;
    }
    public void setPostage(Long postage)
    {
        this.postage = postage;
    }

    public Long getPostage()
    {
        return postage;
    }
    public void setSales(Long sales)
    {
        this.sales = sales;
    }

    public Long getSales()
    {
        return sales;
    }
    public void setStock(Long stock)
    {
        this.stock = stock;
    }

    public Long getStock()
    {
        return stock;
    }
    public void setIsShow(Integer isShow)
    {
        this.isShow = isShow;
    }

    public Integer getIsShow()
    {
        return isShow;
    }
    public void setIsHot(Integer isHot)
    {
        this.isHot = isHot;
    }

    public Integer getIsHot()
    {
        return isHot;
    }
    public void setIsBenefit(Integer isBenefit)
    {
        this.isBenefit = isBenefit;
    }

    public Integer getIsBenefit()
    {
        return isBenefit;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setIsPostage(Long isPostage)
    {
        this.isPostage = isPostage;
    }

    public Long getIsPostage()
    {
        return isPostage;
    }
    public void setGiveIntegral(Long giveIntegral)
    {
        this.giveIntegral = giveIntegral;
    }

    public Long getGiveIntegral()
    {
        return giveIntegral;
    }
    public void setBrowse(String browse)
    {
        this.browse = browse;
    }

    public String getBrowse()
    {
        return browse;
    }
    public void setGoodsType(Integer goodsType)
    {
        this.goodsType = goodsType;
    }

    public Integer getGoodsType()
    {
        return goodsType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("image", getImage())
                .append("goodsName", getGoodsName())
                .append("goodsInfo", getGoodsInfo())
                .append("sortId", getSortId())
                .append("goodsPrice", getGoodsPrice())
                .append("vipPrice", getVipPrice())
                .append("otPrice", getOtPrice())
                .append("postage", getPostage())
                .append("sales", getSales())
                .append("stock", getStock())
                .append("isShow", getIsShow())
                .append("isHot", getIsHot())
                .append("isBenefit", getIsBenefit())
                .append("description", getDescription())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("isPostage", getIsPostage())
                .append("giveIntegral", getGiveIntegral())
                .append("browse", getBrowse())
                .append("goodsType", getGoodsType())
                .toString();
    }
}
